<?php
use doumiaoduo\layer\LayerConfirmWidget;
use doumiaoduo\layer\LayerIframeWidget;
use yii\helpers\Html;
use common\components\extenders\MenuManage;
use common\components\helpers\Fun;
LayerConfirmWidget::widget();
LayerIframeWidget::widget();
?>

<div class="yx-radius2 zx-min-height">
    <!--/*列表*/-->
    <div class="docs-main">
        <table id="tablesaw" class="tablesaw table yx-table1 yx-table3 table-striped with-check" >
            <thead>
            <tr class="yx-bgd2f6ec">
                <th><?=\Yii::t('zhtfrontend','学生');?></th>
                <th><?=\Yii::t('zhtfrontend','手机号');?></th>
                <th><?=\Yii::t('zhtfrontend','已上/课次');?></th>
                <th><?=\Yii::t('zhtfrontend','状态');?></th>
                <th><?=\Yii::t('zhtfrontend','卡号');?></th>
                <th><?=\Yii::t('zhtfrontend','类型');?></th>
            </tr>
            </thead>
                <?php foreach($data as $item):?>
                    <tr>
                        <td><?=$item['student_name']?></td>
                        <td><?=$item['tel']?></td>
                        <td><?=$item['okcount']?>/<?=$item['lesson']?></td>
                        <td>
                            <?php
                            switch($item['status']){
                                case 0:
                                    echo '未开课';
                                    break;
                                case 1:
                                    echo '上课中';
                                    break;
                                case 2:
                                    echo '已结课';
                                    break;
                                case 3:
                                    echo '转班';
                                    break;
                                case 5:
                                    echo '续课';
                                    break;
                                case 4:
                                    echo '退课';
                                    break;
                                case 6:
                                    echo '已锁定';
                                    break;
                            }
                            ?>

                        </td>
                        <td><?=$item['card']?></td>
                        <td><?=$item['order_type']?></td>
                    </tr>
                <?php endforeach?>
        </table>
    </div>
</div>










